package com.itqf.service;

import com.itqf.pojo.Cart;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * projectName: gpshop
 *
 * @author: 赵伟风
 * time: 2021/7/22 20:28
 * description:
 */
public interface CartService {

    /**
     * 添加购物车业务方法
     * @param gId
     * @param gPrice
     * @param uId
     */
    void save(String gId, String gPrice, int uId) throws SQLException;

    /**
     * 购物车数据查询
     * @param getuId
     * @return
     */
    List<Cart> findAll(int getuId) throws InvocationTargetException, IllegalAccessException, SQLException;
}
